package com.mtung.producer.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zhenguo.yao
 * @date 2020/12/11
 */
@RestController
public class ProducerService {

    @Value("${server.port}")
    private Integer port;

    @GetMapping("/producer")
    public String producerMsg() {
        return "我是生产者消息,端口: " + port;
    }

}
